package com.ymttest.database.redis;

import java.util.Set;

import com.ymt.core.tool.Logger;
import com.ymt.database.RedisDriver;
import com.ymttest.utils.EnvSetup;

public class SearchWapper {
	public RedisDriver rd;

	public SearchWapper() {
		rd = new RedisDriver("group2",
				EnvSetup.getSystemUrl("sentinel"));
		rd.getJedis().getClient().setTimeoutInfinite();
	}


	public Set<String> getData(String pid) {
		return  rd.keys(pid);
	}

	public static void main(String args[]) {
		SearchWapper imw = new SearchWapper();
		Set<String> set = imw.rd.keys("eppid*");
		for (String s : set) {
			Logger.debug(s);
			Logger.debug(imw.rd.getValue(s));
		}
	}
}
